GXDefaultPaperType
QuickDraw GX sends theGXDefaultPaperType
message when an application creates a new paper-type object. You can override theGXDefaultPaperType
message to make changes in the paper type used by a printing job. Your override of theGXDefaultPaperType
message must match the following formal declaration:
OSErr MyDefaultPaperType (gxPaperType aPaperType);
aPaperType
- A paper-type object to fill in with the default value.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX sends theGXDefaultPaperType
message when an application calls theGXNewPaperType
function to create a new paper type.You override this message if you need to add additional data to the paper-type object
at the time that it is created or if you wish to change the default paper type to another type. After you forward this message down the message chain, you can add your own information to the paper-type object or change information that was placed there by the default implementation. The default implementation of this message provides the default information for this paper type, including size, margins, and PostScript data.SPECIAL CONSIDERATIONS
You never send theGXDefaultPaperType
message yourself.You must forward the
GXDefaultPaperType
message to other message handlers. Always forward it before you add or change paper-type information.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. gxPaperTypeNotFound The specified paper type could not be found. gxNoSuchPTGroup The specified paper type could not be found. SEE ALSO
TheGXNewPaperType
function is described in Inside Macintosh: QuickDraw GX Printing.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help